﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="jchaxun.aspx.cs" Inherits="jchaxun" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 707px;
            border: 1px solid #808080;
        }
        .auto-style2 {
            width: 275px;
            background-color: #CCCCCC;
        }
        .auto-style3 {
            width: 398px;
            background-color: #CCCCCC;
        }
        .auto-style4 {
            width: 500px;
            border-left-style: solid;
            border-left-width: 1px;
            border-right: 1px solid #C0C0C0;
            border-top-style: solid;
            border-top-width: 1px;
            border-bottom: 1px solid #C0C0C0;
        }
        .auto-style5 {
            width: 275px;
            background-color: #CCCCCC;
            height: 25px;
        }
        .auto-style6 {
            width: 398px;
            background-color: #CCCCCC;
            height: 25px;
        }
    </style>
</head>
<body style="width: 724px">
    <form id="form1" runat="server">
    <div style="width: 714px">
    
        <table class="auto-style1">
            <tr>
                <td class="auto-style5">
                    <asp:CheckBox ID="chdh" runat="server" Text="进货单号" OnCheckedChanged="chdh_CheckedChanged" />
                    <asp:TextBox ID="txthao" runat="server"></asp:TextBox>
                </td>
                <td class="auto-style6">
                    <asp:CheckBox ID="ckyname" runat="server" Text="药品名称" OnCheckedChanged="chdh_CheckedChanged"  />
                    <asp:DropDownList ID="drpyname" runat="server" OnSelectedIndexChanged="drpjy_SelectedIndexChanged">
                    </asp:DropDownList>
                    &nbsp;<asp:CheckBox ID="chjname" runat="server" Text="进货员工" OnCheckedChanged="chdh_CheckedChanged" />
                    <asp:DropDownList ID="drptname" runat="server" OnSelectedIndexChanged="drptname_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="auto-style2">
                    <asp:CheckBox ID="chqtime" runat="server" Text="起始时间" OnCheckedChanged="chdh_CheckedChanged" />
                    <asp:TextBox ID="txttime" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="txttime_CalendarExtender" runat="server" Enabled="True" TargetControlID="txttime">
                    </asp:CalendarExtender>
                </td>
                <td class="auto-style3">
                    <asp:CheckBox ID="chjtime" runat="server" Text="结束时间" OnCheckedChanged="chdh_CheckedChanged" />
                    <asp:TextBox ID="txttimee" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="txttimee_CalendarExtender" runat="server" Enabled="True" TargetControlID="txttimee">
                    </asp:CalendarExtender>
                </td>
            </tr>
        </table>
        <br />
        <asp:Button ID="btncha" runat="server" Text="查询" OnClick="btncha_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btncin" runat="server" Text="清空" OnClick="btncin_Click" />
        <br />
        <br />
        <br />
        <table class="auto-style4">
            <tr>
                <td style="background-color: #FFFFFF">
        <asp:GridView ID="gvjinhuo" runat="server" AutoGenerateColumns="False" style="background-color: #FFFFFF" 
            Width="705px" AllowPaging="True" AllowSorting="True" DataKeyNames="J_DANHAO" 
            OnPageIndexChanging="gvjinhuo_PageIndexChanging" OnRowCancelingEdit="gvjinhuo_RowCancelingEdit" 
          OnRowEditing="gvjinhuo_RowEditing" 
            OnRowUpdating="gvjinhuo_RowUpdating" OnSelectedIndexChanged="gvjinhuo_SelectedIndexChanged" OnSorting="gvjinhuo_Sorting" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="J_DANHAO" HeaderText="进货单号" />
                <asp:BoundField DataField="J_TIME" HeaderText="进货时间" />
                <asp:BoundField DataField="J_ID" HeaderText="药品编号" />
                <asp:BoundField DataField="J_NAME" HeaderText="药品名称" />
                <asp:BoundField DataField="J_NUMBER" HeaderText="药品数量" />
                <asp:BoundField DataField="J_PRICE" HeaderText="药品单价" />
                <asp:BoundField DataField="J_YOUQI" HeaderText="有效期" />
                <asp:BoundField DataField="J_GID" HeaderText="供应商" />
                <asp:BoundField DataField="J_TNAME" HeaderText="进货员工" />
                <asp:BoundField DataField="J_ZE" HeaderText="总金额" />
                <asp:CommandField ShowEditButton="True" />
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FBFBF2" />
            <SortedAscendingHeaderStyle BackColor="#848384" />
            <SortedDescendingCellStyle BackColor="#EAEAD3" />
            <SortedDescendingHeaderStyle BackColor="#575357" />
        </asp:GridView>
                </td>
            </tr>
        </table>
    
    </div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </form>
</body>
</html>
